import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/tykj";



// 查询经手人列表
export function listPerson(query) {
  return request({
    url: '/basic/person/list',
    method: 'get',
    params: query
  })
}

// 新增经手人列表
export function addPerson(data) {
  return request({
    url: '/basic/person/save',
    method: 'post',
    data: data
  })
}

// 查询经手人详细
export function getPerson(id) {
  return request({
    url: '/basic/person/info/' + praseStrEmpty(id),
    method: 'get'
  })
}

// 修改经手人
export function updatePerson(data) {
  return request({
    url: '/basic/person/update',
    method: 'put',
    data: data
  })
}

// 删除经手人
export function delPerson(userId) {
  return request({
    url: '/basic/person/delete/' + userId,
    method: 'delete'
  })
}

//查询经手人类型
export function listPersonType() {
  return request({
    url: '/basic/person/get/type',
    method: 'get'
  })
}





